/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.common.documentoperate.controller;

import com.icinfo.cloud.provider.punish.common.documentoperate.dto.OldJycxDocumentDealDTO;
import com.icinfo.cloud.provider.punish.common.documentoperate.service.IOldDocumentOperateService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 描述：历史文书操作
 *
 * @author xiangyuyu
 * @date 2022-02-16 20:53
 */
@RestController
@RefreshScope
@RequestMapping("/punish/old-document/operate")
@Slf4j
public class OldDocumentOperateController extends BaseController {
    @Resource
    private IOldDocumentOperateService oldDocumentOperateService;

    /**
     * 历史简易程序文书处理
     *
     * @param dto
     * @return
     */
    @PostMapping("/jycx-document-deal")
    public Result<String> oldJycxDocumentDeal(@RequestBody OldJycxDocumentDealDTO dto) {
        oldDocumentOperateService.oldJycxDocumentDeal(dto);
        return Result.success("操作成功");
    }

}
